Samba How-to |
Text info everything written with a $ sign at the beginning on its own line needs
to be typed into the command line exactly as u see it $ cd/etc/
samba is a file sharing server utility for linux that will work with
windoze and linux computers. It is fairly easy to set up, and very Installing u need to unpack this file like so $ tar -zxvf samba-2.0.6.tar.gz If you didnt have any errors this should of unpacked into a dir called samba-2.0.6 You now ned to make the rpms $ cd samba-2.0.6 that should then take a little time whilst it builds the rpms. You may
need to swap the pacakge dir for wherever u have put urs. /usr/src/redhat/RPMS/i386/samba-2.0.6-i386.rpm or something very similiar but you should be able to pin-point it because the name will have samba in it. now you need to install samba. $ # rpm -Uvh /usr/src/redhat/RPMS/i386/samba-2.0.6*.i386.rpm yet again this may take a little time you may also need to change the dir where the samba files are put. New User and Group Samba uses share level security so we need to make a guest account for samba to run on. 1) make a group called smb 2)create the user smbuser the home directory should be /home/public make sure u disable login on the smbuser account as no-one will be logging in on it. Directory Configuration and Making You should already have a directory /home/public as you made it when
u made the smbuser a minute ago. This dir will be owned by the group smb
and the user $ chown smbuser:smb /home/public now ever file that gets created in /home/public will be owned by smb now we need to make a data directory this will only be accesible by the
people in the smb group. $ mkdir /home/samba/data if you look at these commands you will see that anything created in the
data directory will be owned by the group smb.
you can d/l swat from http://rpmfind.net just search for swat. When you have installed the rpm check in your /etc/inetd.conf file for a line that looks similiar to this swat stream tcp nowait.400 root /usr/sbin/swat swat You can change the line in your inted.conf file so that you can have tcp wrappers protecting swat, but i havent gone into this detail here.
Now that you have installed and configured samba and swat you need to edit your smb.conf file Your smb.conf file maybe in /etc/smb.conf or /etc/samba/smb.conf, you need to open it up in an editor and copy this into it removing all the old data in there. # Samba config file created using SWAT # Global parameters [public] [data] you need to make approiate changes in here for your network like changing the server name and workgroup. Starting samba You can either start samba from swat or the command line, if you are
going to start samba from swat you may need to restart samba so it will
read you $ /etc/rc.d/init.d/smb stop If you didnt see any error messages then everything should be running fine. Finished Thank-you for reading this tutorial and i hope you found it useful.
|
Credits: |
Author: m0ltenfubar 17/2/2002 Legion2000 Security Research 1996 - 2002 Website: www.legion2000.uni.cc contact: legion2000-staff@hushmail.com |